/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package my.cbr.casedescriptions;

import java.util.ArrayList;
import java.util.List;
import jcolibri.cbrcore.Attribute;
import jcolibri.cbrcore.CaseComponent;
import jcolibri.extensions.classification.ClassificationSolution;
import my.cbr.database.model.FishDeath;

/**
 *
 * @author Geir Ole
 */
public class CaseSolution implements CaseComponent, ClassificationSolution {

    private Integer caseID;
    private List<FishDeath> fishdeath = new ArrayList<FishDeath>();
    private CaseDescription caseDescription;
    private String risk;
    private Double deathRatio;
    private Integer aggregatedCount;

    public Integer getAggregatedCount() {
        return aggregatedCount;
    }

    public void setAggregatedCount(Integer aggregatedCount) {
        this.aggregatedCount = aggregatedCount;
    }
    
    public Double getDeathRatio() {
        return deathRatio;
    }

    public void setDeathRatio(Double deathRatio) {
        this.deathRatio = deathRatio;
    }

    public String getRisk() {
        return risk;
    }

    public void setRisk(String risk) {
        this.risk = risk;
    }
    

    public CaseDescription getCaseDescription() {
        return caseDescription;
    }

    public void setCaseDescription(CaseDescription caseDescription) {
        this.caseDescription = caseDescription;
    }

    public Integer getCaseID() {
        return caseID;
    }

    public List<FishDeath> getFishdeath() {
        return fishdeath;
    }

    public void setFishdeath(List<FishDeath> fishdeath) {
        this.fishdeath = fishdeath;
    }

    public void addFishDeath(FishDeath death)
    {
        fishdeath.add(death);
    }

    public void setCaseID(Integer caseID) {
        this.caseID = caseID;
    }

    public Attribute getIdAttribute() {
        return new Attribute("caseID", this.getClass());
    }

    @Override
    public String toString() {
        return "CaseSolution{" + "risk=" + risk + "deathRatio=" + deathRatio + "aggregatedCount=" + aggregatedCount + '}';
    }
    

    public Object getClassification() {

       return risk;
    }
    
}
